@extends('layout.master')
@section('title', '商品列表')
@section('content')
<body>
<div class="easyui-layout" data-options="fit:true">
    <div data-options="iconCls:'icon-save',collapsible:true,region:'north'" style="padding-bottom: 35px;overflow:hidden;" title="搜索条件">
        <form action="" id="form">
            <table style="width:100%">
                <tr>
                    <td style="width:6%;" class="center">订单编号：</td>
                    <td style="width:19%"><input class="easyui-textbox" name="order_num" style="width:100%;height:32px" prompt="请输入订单编号"></td>
                    <td style="width:6%" class="center">订单状态：</td>
                    <td style="width:19%">
                        <select class="easyui-combobox" name="order_state" style="width:100%;">
                            <option value="">请选择</option>
                            {{-- (1未付款 2完成)--}}
                            <option value="1">未付款</option>
                            <option value="2">已完成</option>
                        </select>
                    </td>
                    <td style="width:6%;" class="center">商品名称：</td>
                    <td style="width:19%"><input class="easyui-textbox" name="good_name" style="width:100%;height:32px" prompt="请输入套餐名称"></td>
                    <td style="width:6%" class="center">订单价格：</td>
                    <td style="width:19%"><input class="easyui-textbox" name="order_price" style="width:100%;height:32px" prompt="请输入订单价格"></td>
                </tr>
                <tr>
                    <td style="width:6%;" class="center">下单用户：</td>
                    <td style="width:19%"><input class="easyui-textbox" name="order_payer" style="width:100%;height:32px" prompt="请输入下单人"></td>
                    <td style="width:6%" class="center">下单时间：</td>
                    <td style="width:19%">
                        <input class="easyui-datebox" name="order_stime"
                               style="width:48%;height:32px" prompt="请选择开始时间"
                               data-options="formatter:$.formatDate,parser:$.myParse">
                        <input class="easyui-datebox" name="order_etime"
                               style="width:48%;height:32px;float: left;" prompt="请选择结束时间"
                               data-options="formatter:$.formatDate,parser:$.myParse">
                    </td>
                    <td style="width:6%" class="center">下单方式：</td>
                    <td style="width:19%">
                        <select class="easyui-combobox" name="order_state" style="width:100%;">
                            <option value="">请选择</option>
                            {{-- 1微信2支付宝--}}
                            <option value="1">微信</option>
                            <option value="2">支付宝</option>
                        </select>
                    </td>
                    <td style="width:6%" class="center">支付时间：</td>
                    <td style="width:19%">
                        <input class="easyui-datebox" name="order_paystime"
                               style="width:48%;height:32px" prompt="请选择开始时间"
                               data-options="formatter:$.formatDate,parser:$.myParse">
                        <input class="easyui-datebox" name="order_payetime"
                               style="width:48%;height:32px;float: left;" prompt="请选择结束时间"
                               data-options="formatter:$.formatDate,parser:$.myParse">
                    </td>
                </tr>
            </table>
            <div class="toolbar">
                <a href="#" class="easyui-linkbutton" onclick="$api.clearFrom()" iconCls="icon-empty">清空</a>
                <a href="#" class="easyui-linkbutton" onclick="$api.doSearch();" iconCls="icon-search">查询</a>
                <a href="#" class="easyui-linkbutton" onclick="$api.good_sj_xj(1)" iconCls="icon-man">编辑订单</a>
                <a href="#" class="easyui-linkbutton" onclick="$api.good_sj_xj(1)" iconCls="icon-man">导出订单</a>
{{--                <a href="#" class="easyui-linkbutton" onclick="$api.good_sj_xj(1)" iconCls="icon-man">编辑订单</a>--}}
            </div>
        </form>
    </div>
    <!--上面是模糊搜索区域-->
    <div data-options="iconCls:'icon-save',collapsible:true,region:'center'" title="搜索结果">
        <table style="height: 100%;" id="dg">
            <thead>
            <tr>
                <th data-options="field:'ck',checkbox:true"></th>
                <th data-options="field:'tradeno',width:250,align: 'center', title: '订单号'"></th>
                <th data-options="field:'createtime',width:200,align: 'center', title: '创建时间'"></th>
                <th data-options="field:'order_state',width:100,align: 'center', title: '订单状态'"></th>
                <th data-options="field:'goodname',width:120,align: 'center', title: '订单物品'"></th>
                <th data-options="field:'spjg',width:100,align: 'center', title: '商品价格'"></th>
                <th data-options="field:'ddjg',width:100,align: 'center', title: '订单价格'"></th>
                <th data-options="field:'paytype',width:100,align: 'center', title: '支付方式'"></th>
                <th data-options="field:'order_payer',width:150,align: 'center', title: '支付用户'"></th>
                <th data-options="field:'order_paytime',width:200,align: 'center', title: '支付时间'"></th>
            </tr>
            </thead>
        </table>
    </div>
</div>
<script>$api.myDataGird({url: $api.url +'orderslist', obj: '#dg',plainBtn:true});</script>
</body>
@endsection
